<?php echo $this->Form->create("ObjectCreator"); ?>

<table border="1">
    <thead>
        <tr>
            <th colspan="2"> TIPO DE ACCIÓN</th>
        </tr>
    </thead>
    <tbody>


        <tr>
            <td>Tipo:</td>
            <td><?php echo $this->Form->input("ObjectCreator.tipo", array('id'=>'ObjectCreatorTipo', 'options' => array(' ' => ' ', 'index' => 'index', 'edit' => 'edit', 'add' => 'add'))); ?></td>
        </tr>
        <tr>
            <td>Nombre</td>
            <td><?php echo $this->Form->input("ObjectCreator.nombre", array('label'=>'')); ?></td>
        </tr>

    </tbody>
</table>
<?php

echo $this->Ajax->observeField('ObjectCreatorTipo', array(
    'url' => array('action' => 'select',$objeto),
    'frequency' => 0.2,
    'update' => 'campos',
    'indicator' => 'loading1'
        )
);
?>
<div id="campos">
  
    
</div>

<?php echo $this->Ajax->submit('Guardar', array('url' => array('controller' => 'ObjectCreators', 'action' => 'addAction', $objeto), 'update' => 'content', 'indicator' => 'loading')); ?>


<?php echo $this->Ajax->end(); ?>



